<script setup lang="ts">
//
const model = defineModel()
const props = defineProps(["options"])
</script>

<template>
  <el-input v-if="options.type === 1" v-model="model" type="number"/>
  <el-input v-else-if="options.type === 2" v-model="model" />
  <el-date-picker style="width: 100%;" v-else-if="options.type === 3"
                  value-format="YYYY-MM-DD HH:mm:ss"
                  v-model="model" type="datetime" format="YYYY-MM-DD HH:mm:ss"/>
  <el-switch v-else-if="options.type === 4" v-model="model" :active-value="1" :inactive-value="0"/>
</template>

<style scoped>

</style>